﻿using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace DigitalHealth.PACS.EquipService.Controllers
{
    /// <summary>
    /// 设备信息
    /// </summary>
    [Route("api/{Controller}")]
    [ApiController]
    public class EquipmentController : ControllerBase
    {
        // GET: api/<EquipmentController>
        [HttpGet]
        public IEnumerable<string> Get()
        {
            System.Console.WriteLine("设备信息被请求了");
            return new string[] { "设备1", "设备2", "设备3", "设备4", "设备5", "设备6", "设备7" };
        }

        // GET api/<EquipmentController>/5
        [HttpGet("{id}")]
        public string Get(int id)
        {
            return "value";
        }

        // POST api/<EquipmentController>
        [HttpPost]
        public void Post([FromBody] string value)
        {
        }

        // PUT api/<EquipmentController>/5
        [HttpPut("{id}")]
        public void Put(int id, [FromBody] string value)
        {
        }

        // DELETE api/<EquipmentController>/5
        [HttpDelete("{id}")]
        public void Delete(int id)
        {
        }
    }
}
